import { _decorator, Component, Node } from 'cc';
import { CameraController } from '../CameraController';
import { BattleManager } from '../BattleManager';
const { ccclass, property } = _decorator;

@ccclass('HideBtn')
export class HideBtn extends Component {

    hideSelf() {
        BattleManager.Instance.gameResume();
        this.node.parent.active = false;
    }

    protected onEnable(): void {
        this.node.on("click", this.hideSelf, this);
    }

    protected onDisable(): void {
        this.node.off("click", this.hideSelf, this);
    }

}


